<template>
  <div class="homeHeader">
    <div class="header-left"> <i class="iconfont icon-fanhui"></i> </div>
    <div class="header-input"><i class="iconfont icon-sousuo"></i> 请输入城市/景点/游玩主题</div>
    <router-link to="/city">
      <div class="header-right">{{this.$store.state.city}}<i class="iconfont icon-jiantouxia"></i></div>
    </router-link>
  </div>
</template>
<script>
export default {
  name: "homeHeader",
  props: {
    city: String
  }
};
</script>
<style lang='stylus' scoped>
@import '~styles/varibles.styl'; // 配置 别名 'styles': resolve('src/assets/styles') ==》// @import '~@/assets/styles/varibles.styl'; // css 中引入css文件 前面必须的加 ~ ；
@import '~styles/mixins.styl';

.homeHeader {
  display: flex;
  line-height: $headerHeight;
  background: $bgColor;
  color: #fff;

  .header-input {
    text-align: left;
    padding-left: 0.1rem;
  }

  .header-left {
    width: 0.64rem;
    float: left;
    text-align: center;
  }

  .header-input {
    flex: 1;
    background: #fff;
    border-radius: 0.1rem;
    margin: 0.12rem;
    height: 0.64rem;
    line-height: 0.64rem;
    color: #ccc;

    i.iconfont.icon-sousuo {
      font-size: 0.3rem;
    }
  }

  .header-right {
    width: 1.24rem;
    color: #fff;
    ellipsis();

    i.iconfont.icon-jiantouxia {
      font-size: 0.28rem;
      margin: 0.08rem;
    }
  }
}
</style>
